package com.lxyk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxyk.pojo.History;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName HistoryMapper
 * @Description TODO
 * @Author FJQ
 * @Date 2022/10/25 9:14
 * @Version 1.0
 **/
@Repository
public interface HistoryMapper extends BaseMapper<History> {
    //因为 这个查询涉及到三表，所以我们需要自己写一个  查询接口，来代替  plus内置的
    List<History> listHistory(Map<String, Object> map);

    int saveHistory(History history);

    History getHistoryById(Integer hid);

    int updateHistory(History history);

    int batchDeleteHistory(@Param("ids") List<Integer> ids);

}
